package yxy.cherry.battle.module.affix.condition;

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.module.event.FighterEvent;

@AffixconditionType(Type = 10)
public class AffixCondition10AvoidKill extends AffixCondition {

	public AffixCondition10AvoidKill(int param) {
		super(param);
	}

	@Override
	public boolean checkOne(Fighter actor) {
		return true;
	}

	@Override
	public boolean check(Fighter actor, Fighter target) {
		return target.getEvents().contains(FighterEvent.FE_AvoidKillShield);
	}

	@Override
	public String toString() {
		return String.format("未激活过免死");
	}
}
